package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
public class TravelComment extends BaseDomain{

    public static final Integer READED = 0;//已读评论
    public static final Integer UNREAD = 1;//未读评论

    private User user;//评论用户

    private Travel travel;//评论游记

    @JsonFormat(pattern = "y-M-d hh:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "y-m-d")
    private Date commentTime;//评论时间

    private String commentContent;//评论内容

    private Integer likeCount;//当前评论被点赞次数

    private Integer replyCount;//当前评论被回复次数

    //状态  0已读  1未读
    private Integer status;//状态


}